package com.xszx.knowledge.service;

import com.xszx.knowledge.dto.DocReq;
import com.xszx.knowledge.entity.Doc;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 文档 服务类
 * </p>
 *
 * @author wencai
 * @since 2023/04/25 10:29
 */
public interface DocService extends IService<Doc> {
    boolean saveDocAndContent(DocReq docReq);
    void updateViewCount(Long id);
    void updateVoteCount(Long id);
    void vote(Long id);
}
